#include "chat.h"

Chat::Chat(QObject *parent) : QObject(parent)
{

}

void Chat::Receive(Message msg){
    messages.append(msg);
    cntUnread++;
}

QVector<Message> Chat::getMessages(){
    return messages;
}

void Chat::ClearUnread(){
    cntUnread = 0;
}

int Chat::GetUnread(){
    return cntUnread;
}
